package YAPserver.gameObjects;

/**
 * The GameBall is the "normal" ball that is played with in a game of YAP. In general if this gameObeject hits a player's wall, that player will lose a life.
 * @author Daniel
 *
 */

public class GameBall extends AbstractBall{
	/**
	 * Constructs a gameBall with position, direction, speed and size.
	 * @param middlePoint point which determines the position at which the ballAbstract will be constructed
	 * @param angle double which determines the direction of the ballAbstract
	 * @param speed double which determines the ballAbstract's speed
	 * @param radius double which determines the ballAbstract's radius
	 */
	public GameBall(Point middlePoint, double angle, double speed, double radius){
		super(middlePoint, angle, speed, radius);
	}

	@Override
	public String toString(){
		String s = "";
		s = s + this.m_middlePoint + tab + Math.round(this.m_radius);
		return s;
	}
}
